[Top] [Prev] [Next] [Bottom]
[Contents]
SaSelectBegin
Prints the beginning fragment of an HTML form select element.
#include "SaRnHtml.h"
int SaSelectBegin(char* ename,
int multi,
int size,
char* elabel);
Arguments
ename
- A string specifying the name of the select form element. This string is converted to an HTML-compatible string. If ename is NULL, an empty string is used as the element name.
multi
- An integer flag specifying whether a user can select multiple options. A non-zero value adds the HTML fragment:
MULTIPLE
- to the HTML stream. Otherwise, the fragment is suppressed.
size
- An integer specifying the display size of the select element. If size is greater than zero, the fragment:
SIZE="size"
- is added to the HTML stream. Otherwise, the fragment is suppressed.
elabel
- A string specifying the label of the select form element. This string is converted to an HTML-compatible string. If elabel is NULL, an empty string is used as the element label.
Return Values
Returns an integer with a value of 0.
Prints the beginning fragment of an HTML form select element.
The code fragment:
SaSelectBegin("OS", 1, 6, "Operating System");
will write:
Operating System<SELECT NAME="OS" MULTIPLE SIZE="6">
to the output stream.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.